
/* Copyright(C) 1993, The MITRE Corporation */

#import "colorView.h"

@implementation colorView

- setBackgroundColor:(NXColor)color 
{
    viewColor = color;
    return self;
}

- setBackgroundGray:(float)gray
{
    viewColor = NXConvertRGBAToColor( gray, gray, gray, 1.0);
    return self;
} 

- drawSelf:(const NXRect *)rects :(int)rectCount
{
    NXRect frameRect;
    [self getFrame:&frameRect];
    [self convertRectFromSuperview:&frameRect];
    NXSetColor(viewColor);
    NXRectFill(&frameRect);
    NXFrameRect(&frameRect);
    return self;
}


@end
